home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr44
/
sndoff20.zip
/
MUSIC.DOC
< prev
next >
Wrap
Text File
|
1993-04-07
|
6KB
|
119 lines
MUSIC.DOC
Playing The Sound Off! SOM Files
Concept and Format
This file is a supplement to the SOUNDOFF.DOC Program Manual.
Rather than totally rewrite and reformat the Manual, I decided this
would be easier. Also, the Music capability of Sound Off! is more
complex than the other functions, and with this seperate DOC, you
dont have to thumb through all the other stuff for reference.
This manual will attempt to give you a little insight into the procedure
and format of creating a *.SOM file, which is a script file of Music for
Sound Off! to play on command.
Sound Off! reads and plays music in basically the same format as BASICA
using the PLAY command.
I suggest you view the supplied *.SOM files with your text viewer or editor
to see how they are written. These, along with this manual should get you
going in the right direction for making your PC play anything from
"Twinkle Twinkle Little Star" to a 30 min Bach symphony piece.
Unfortunatley, I am not a music writing expert....though I have, and still
do, play music professionaly, I can't read or write a note! So my help is
really only going to be that of telling you how the process works.
A simple description is....Sound Off! reads charecters from the script and
converts them into a numeric value, which is played throught the PC
speaker. Certain charecters, such as (#) and (.) are interpeted in a
special way, as are a few others that instruct the program on timing,
pausing, playing speed etc. You can type most anything in a .SOM script and
Sound Off! will make some music from it, run the script GARBAGE.SOM through
Sound Off! and see what I mean. Problem is, without being structered
properly, the "music" won't make much sense!
SCRIPT FILES:
Your script files must be saved with an extension of (.SOM), when you
specify the file for Sound Off! to play with the /m or /ms switch, you
need not specify the extension, it is assumed, and therefore required to
be of the proper syntax. Sound Off! first searches the current directory,
then all directories in the PATH statement for the specified file. If the
script resides in a directory NOT in the PATH, or on a floppy, then you
may specify drive and directory with the filename.
Examples: SOUNDOFF /m WillTell = plays the WILLTELL.SOM script file
that resides either in the current directory or in a PATH directory.
SOUNDOFF /m A:\BACH23 = plays the BACH23.SOM that is on the
floppy in the A: Drive.
If you are playing a .SOM script from within a batch file, using the /ms
switch will turn off Sound Off! displays.
By the way...if you have not figured it out yet, the extensions for Sound
Off! script files stand for the following:
.SOM = Sound Off! MUSIC script
.SOS = Sound Off! SOUND script.
The following page(s) list and somewhat explain the music file structure
and commands for Sound Off! music.
Sound Off! interprets a string very similar to that used with the
PLAY verb in BASICA. The two major exceptions are that the "N" order
is not interpreted and that variables cannot appear in the string.
The string characters are interpreted as follows:
A .. G The musical notes A thru G. A note may be followed
by an accidental ('#' or '+' for sharp and '-' for
flat.) Additionally, a note (With optional sharp or
flat) may also be followed by a number denoting the
note length (1 for a whole note thru 64 for a 64th
note.) The note, with optional accidental and
length, may also be followed by one or more dots
("."), each of which extends the note by one half
of its existing value. For example, two dots produce
a length of 9/4 the original value, and three dots
a length of 27/8 the original value.
Ln Specifies the default length of the notes following
("n" must be 1 for a whole note thru 64 for a 64th
note.) The initial default value is 4 (quarter note.)
Mz Specifies the fraction of the note length that the
note is actually sounding. "z" is one of the letters
"S", "N", or "L", which have these meanings:
MS Music staccato (3/4 of note length)
MN Music normal (7/8 of note length)
ML Music legato (all of note length)
On Specifies the octave in which the notes following
are to be played (0 thru 7). The initial default
octave is 3, which is the octave which begins at
middle C.
Pn Specifies that no sound is to be made for an
interval. "n" (optional) is the note length (1
for a whole note thru 64 for a 64th note.) If "n"
is omitted, the current default note length is used.
One or more dots may follow, each of which extends
the rest by one half of its existing value.
Tn Specifies the tempo in beats per minute (32 thru
255.) The initial default value is 120.
Thats about all I can give you, you're on your own. If you have played
with BASICA or QBASIC, you should have no trouble making Beautiful Music.
If this is new to you, well....experimenting, trial and error, are two of
the BEST teachers known to man.
ENJOY!